package com.cwd.arm.infrastructure.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cwd.arm.infrastructure.dao.RoleAuthDao;
import com.cwd.arm.infrastructure.mapper.RoleAuthMapper;
import com.cwd.arm.infrastructure.po.RoleAuthPo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
* Description:角色权限关联
* Created on 2022年01月01日
* @author  yan
*/
@Service
public class RoleAuthDaoImpl extends ServiceImpl<RoleAuthMapper, RoleAuthPo> implements RoleAuthDao {

    @Override
    public void removeByRoleId(Long roleId) {
        QueryWrapper<RoleAuthPo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("role_id",roleId);
        remove(queryWrapper);
    }
}
